package com.bwie.controller;

import com.bwie.service.TbOrderService;
import com.bwie.utils.R;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiuWei Chen
 * @version 1.0
 * @description: TODO
 * @date 2025/4/21 18:49
 */
@RestController
@RequestMapping("/order/index")
public class IndexController {
    @Autowired
    TbOrderService orderService;
    @PostMapping("/getOrderById/{id}")
    public R getOrderById(@PathVariable(name = "id")Integer id){
        return orderService.getOrderById(id);
    }
}
